package com.itany.service;


import com.alibaba.dubbo.config.annotation.Service;
import com.codingapi.tx.annotation.TxTransaction;
import com.itany.api.IExamineService;
import com.itany.common.Examine;
import com.itany.dao.ExamineDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ExamineServiceImpl implements IExamineService{

    @Autowired
    private ExamineDao examineDao;

    @TxTransaction(isStart = true)
     @Transactional(propagation = Propagation.REQUIRED)
    public void addExamine(Examine examine) {
        examineDao.insertExmine(examine);
    }
}
